{% extends "learning_logs/base.html" %}

{% block content %}
<!-- 哪个主题中添加新条目 -->
<p><a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a></p>

<p>Add a new entry</p>
<form action="{% url 'learning_logs:new_entry' topic.id %}" method='post'>
  {% csrf_token %}
  {{ form.as_p }}
  <button name="submit">Add entry</button>
</form>

{% endblock content %}
